import request from '@/utils/request'

// 获取投诉列表
export const queryComplaintList = (params) => {
    return request({
        url: '/complaint/queryComplaintList',
        method: 'post',
        data: params
    })
}

// 获取投诉详情
export const queryComplaintInfo = (params) => {
    return request({
        url: '/complaint/queryComplaintInfo',
        method: 'get',
        params
    })
}

// 获取投诉列表
export const queryComplaintOverview = (params) => {
    return request({
        url: '/complaint/queryComplaintOverview',
        method: 'get',
        params
    })
}

// 获取投诉聚合列表
export const queryComplaintCluster = (params) => {
    return request({
        url: '/complaint/queryComplaintCluster',
        method: 'get',
        params
    })
}

// 获取聚合详情
export const queryComplaintListbyIds = (params) => {
    return request({
        url: '/complaint/queryComplaintListbyIds',
        method: 'get',
        params
    })
}

// 展示分析结果
export const queryComplaintAnalysisResult = (orderId) => {
    return request({
        url: '/complaint/queryComplaintAnalysisResult?orderId=' + orderId,
        method: 'get',
    })
}

export const queryComplaintStatistic = () => {
    return request({
        url: '/complaint/queryComplaintStatistic',
        method: 'get',
    })
}

export const queryComplaintCounty = () => {
    return request({
        url: '/complaint/queryComplaintCounty',
        method: 'get',
    })
}

export const queryComplaintDaily = () => {
    return request({
        url: '/complaint/queryComplaintDaily',
        method: 'get',
    })
}

// 预警
export const queryComplaintListByPage = (params) => {
    return request({
        url: '/complaint/queryComplaintListByPage',
        method: 'get',
        params
    })
}

export const queryComplaintMinutely = (params) => {
    return request({
        url: '/complaint/queryComplaintMinutely',
        method: 'get',
        params
    })
}

export const queryComplaintCityStatistic = () => {
    return request({
        url: '/complaint/queryComplaintCityStatistic',
        method: 'get',
    })
}

export const queryComplaintCityDaily = () => {
    return request({
        url: '/complaint/queryComplaintCityDaily',
        method: 'get',
    })
}

export const querySatisfactionOverview = () => {
    return request({
        url: '/complaint/querySatisfactionOverview',
        method: 'get',
    })
}

export function queryCountySatisfactionData(query) {
    return request({
        url: '/complaint/queryCountySatisfactionData',
        method: 'get',
        params: query
    })
}

export function querySatisfactionDateList() {
    return request({
        url: '/complaint/querySatisfactionDateList',
        method: 'get'
    })
}

export function querySatisfactionList(query) {
    return request({
        url: '/complaint/querySatisfactionList',
        method: 'get',
        params: query
    })
}

export function querySatisfactionListTend(params) {
    return request({
        url: '/complaint/querySatisfactionListTend',
        method: 'post',
        data: params
    })
}

export function querySatisfactionListTendChart(params) {
    return request({
        url: '/complaint/querySatisfactionListTendChart',
        method: 'post',
        data: params
    })
}

export function queryCellComplaintList(params) {
    return request({
        url: '/complaint/queryCellComplaintList',
        method: 'post',
        data: params
    })
}

/**
 * 诉中管控查询
 */
export function queryCompliantAranList(params) {
    return request({
        url: '/complaint/queryCompliantAranList',
        method: 'get',
        params
    })
}

export function addComplaintDelayOperation(params) {
    return request({
        url: '/complaint/addComplaintDelayOperation',
        method: 'post',
        data: params
    })
}

export function updateComplaintDelayOperation(params) {
    return request({
        url: '/complaint/updateComplaintDelayOperation',
        method: 'post',
        data: params
    })
}

export function queryComplaintListbyOrderId(params) {
    return request({
        url: '/complaint/queryComplaintListbyOrderId',
        method: 'get',
        params
    })
}

export function queryAranDelayAuto(params) {
    return request({
        url: '/complaint/queryAranDelayAuto',
        method: 'get',
        params
    })
}

export function queryComplaintDelayOperationIsNeedOptimizeOrderId(params) {
    return request({
        url: '/complaint/queryComplaintDelayOperationIsNeedOptimizeOrderId',
        method: 'get',
        params
    })
}

export function updateComplaintDelayOperationByWeChat(params) {
    return request({
        url: '/complaint/updateComplaintDelayOperationByWeChat',
        method: 'post',
        data: params
    })
}

export function queryComplaintDelay3Hover(params) {
    return request({
        url: '/complaint/queryComplaintDelay3Hover',
        method: 'get',
        params
    })
}

export function queryCompliantAranExpertGroupHandler(params) {
    return request({
        url: '/complaint/queryCompliantAranExpertGroupHandler',
        method: 'get',
        params
    })
}

export function queryComplaintDelayNotCompletedTip(params) {
    return request({
        url: '/complaint/queryComplaintDelayNotCompletedTip',
        method: 'get',
        params
    })
}

export function queryComplaintDelayCompleted(params) {
    return request({
        url: '/complaint/queryComplaintDelayNotCompletedTip',
        method: 'get',
        params
    })
}

export function queryComplaintDelayPlanInvalid(params) {
    return request({
        url: '/complaint/queryComplaintDelayPlanInvalid',
        method: 'get',
        params
    })
}

